{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "89bcc499",
   "metadata": {},
   "source": [
    "## 1. 现货 SPOT\n",
    "\n",
    "```python\n",
    "from binance_interface.api import SPOT\n",
    "```\n",
    "\n",
    "### 1.1 账户接口 SPOTAccount\n",
    "\n",
    "```python\n",
    "from binance_interface.api.spot import SPOTAccount\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_account|账户信息|/api/v3/account|\n",
    "|get_myTrades|账户成交历史|/api/v3/myTrades|\n",
    "|get_rateLimit_order|查询目前下单数|/api/v3/rateLimit/order|\n",
    "|get_myPreventedMatches|获取 Prevented Matches|/api/v3/myPreventedMatches|\n",
    "|get_myAllocations|查询分配结果|/api/v3/myAllocations|\n",
    "|get_account_commission|查询佣金费率 (USER_DATA)|/api/v3/account/commission|\n",
    "\n",
    "### 1.2 策略交易接口 SPOTAlgo\n",
    "\n",
    "```python\n",
    "from binance_interface.api.spot import SPOTAlgo\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|set_algo_spot_newOrderTwap|时间加权平均价格策略(Twap)下单|/sapi/v1/algo/spot/newOrderTwap|\n",
    "|cancel_algo_spot_order|取消TWAP策略订单|/sapi/v1/algo/spot/order|\n",
    "|get_algo_spot_openOrders|查询当前策略订单挂单|/sapi/v1/algo/spot/openOrders|\n",
    "|get_algo_spot_historicalOrders|查询历史策略订单|/sapi/v1/algo/spot/historicalOrders|\n",
    "|get_algo_spot_subOrders|查询执行子订单 (USER_DATA)|/sapi/v1/algo/spot/subOrders|\n",
    "\n",
    "### 1.3 行情接口 SPOTMarket\n",
    "\n",
    "```python\n",
    "from binance_interface.api.spot import SPOTMarket\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_ping|测试服务器连通性|/api/v3/ping|\n",
    "|get_time|获取服务器时间|/api/v3/time|\n",
    "|get_exchangeInfo|交易规范信息|/api/v3/exchangeInfo|\n",
    "|get_depth|深度信息|/api/v3/depth|\n",
    "|get_trades|近期成交列表|/api/v3/trades|\n",
    "|get_historicalTrades|查询历史成交|/api/v3/historicalTrades|\n",
    "|get_aggTrades|近期成交(归集)|/api/v3/aggTrades|\n",
    "|get_klines|K线数据|/api/v3/klines|\n",
    "|get_avgPrice|当前平均价格|/api/v3/avgPrice|\n",
    "|get_uiKlines|UIK线数据|/api/v3/uiKlines|\n",
    "|get_ticker_24hr|24hr 价格变动情况|/api/v3/ticker/24hr|\n",
    "|get_ticker_tradingDay|交易日行情(Ticker)|/api/v3/ticker/tradingDay|\n",
    "|get_ticker_price|最新价格|/api/v3/ticker/price|\n",
    "|get_ticker_bookTicker|当前最优挂单|/api/v3/ticker/bookTicker|\n",
    "|get_ticker|滚动窗口价格变动统计|/api/v3/ticker|\n",
    "\n",
    "### 1.4 交易接口 SPOTTrade\n",
    "\n",
    "```python\n",
    "from binance_interface.api.spot import SPOTTrade\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|set_order_test|测试下单|/api/v3/order/test|\n",
    "|set_order|下单|/api/v3/order|\n",
    "|cancel_order|撤销订单|/api/v3/order|\n",
    "|cancel_openOrders|撤销单一交易对的所有挂单|/api/v3/openOrders|\n",
    "|set_order_cancelReplace|撤消挂单再下单|/api/v3/order/cancelReplace|\n",
    "|get_order|查询订单|/api/v3/order|\n",
    "|get_openOrders|当前挂单|/api/v3/openOrders|\n",
    "|get_allOrders|查询所有订单|/api/v3/allOrders|\n",
    "|set_order_oco|OCO下单|/api/v3/order/oco|\n",
    "|cancel_orderList|取消 OCO 订单|/api/v3/orderList|\n",
    "|get_orderList|查询 OCO|/api/v3/orderList|\n",
    "|get_allOrderList|查询所有 OCO|/api/v3/allOrderList|\n",
    "|get_openOrderList|查询 OCO 挂单|/api/v3/openOrderList|\n",
    "|set_sor_order|下 SOR 订单|/api/v3/sor/order|\n",
    "|set_sor_order_test|测试 SOR 下单接口 (TRADE)|/api/v3/sor/order/test|\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "779cc67d",
   "metadata": {},
   "source": [
    "## 2. U本位合约 UM\n",
    "\n",
    "```python\n",
    "from binance_interface.api.um import UM\n",
    "```\n",
    "\n",
    "### 2.1 账户和交易接口 UMAccountTrade\n",
    "\n",
    "```python\n",
    "from binance_interface.api.um import UMAccountTrade\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|set_positionSide_dual|更改持仓模式|/fapi/v1/positionSide/dual|\n",
    "|get_positionSide_dual|查询持仓模式|/fapi/v1/positionSide/dual|\n",
    "|set_multiAssetsMargin|更改联合保证金模式|/fapi/v1/multiAssetsMargin|\n",
    "|get_multiAssetsMargin|查询联合保证金模式|/fapi/v1/multiAssetsMargin|\n",
    "|set_order|下单|/fapi/v1/order|\n",
    "|set_order_test|测试下单接口 (TRADE)|/fapi/v1/order/test|\n",
    "|alter_order|修改订单|/fapi/v1/order|\n",
    "|set_batchOrders|批量下单|/fapi/v1/batchOrders|\n",
    "|alter_batchOrders|批量修改订单|/fapi/v1/batchOrders|\n",
    "|get_orderAmendment|查询订单修改历史|/fapi/v1/orderAmendment|\n",
    "|get_order|查询订单|/fapi/v1/order|\n",
    "|cancel_order|撤销订单|/fapi/v1/order|\n",
    "|cancel_allOpenOrders|撤销全部订单|/fapi/v1/allOpenOrders|\n",
    "|cancel_batchOrders|批量撤销订单|/fapi/v1/batchOrders|\n",
    "|set_countdownCancelAll|倒计时撤销所有订单|/fapi/v1/countdownCancelAll|\n",
    "|get_openOrder|查询当前挂单|/fapi/v1/openOrder|\n",
    "|get_openOrders|查看当前全部挂单|/fapi/v1/openOrders|\n",
    "|get_allOrders|查询所有订单(包括历史订单)|/fapi/v1/allOrders|\n",
    "|get_balance|账户余额V2|/fapi/v2/balance|\n",
    "|get_account|账户信息V2|/fapi/v2/account|\n",
    "|set_leverage|调整开仓杠杆|/fapi/v1/leverage|\n",
    "|set_marginType|变换逐全仓模式|/fapi/v1/marginType|\n",
    "|set_positionMargin|调整逐仓保证金|/fapi/v1/positionMargin|\n",
    "|get_positionMargin_history|逐仓保证金变动历史|/fapi/v1/positionMargin/history|\n",
    "|get_positionRisk|用户持仓风险V2|/fapi/v2/positionRisk|\n",
    "|get_userTrades|账户成交历史|/fapi/v1/userTrades|\n",
    "|get_income|获取账户损益资金流水|/fapi/v1/income|\n",
    "|get_leverageBracket|杠杆分层标准|/fapi/v1/leverageBracket|\n",
    "|get_adlQuantile|持仓ADL队列估算|/fapi/v1/adlQuantile|\n",
    "|get_forceOrders|用户强平单历史|/fapi/v1/forceOrders|\n",
    "|get_apiTradingStatus|合约交易量化规则指标|/fapi/v1/apiTradingStatus|\n",
    "|get_commissionRate|用户手续费率|/fapi/v1/commissionRate|\n",
    "|get_income_asyn|获取合约资金流水下载Id|/fapi/v1/income/asyn|\n",
    "|get_income_asyn_id|通过下载Id获取合约资金流水下载链接|/fapi/v1/income/asyn/id|\n",
    "|get_order_asyn|获取合约订单历史下载Id|/fapi/v1/order/asyn|\n",
    "|get_order_asyn_id|通过下载Id获取合约订单下载链接|/fapi/v1/order/asyn/id|\n",
    "|get_trade_asyn|获取合约交易历史下载Id|/fapi/v1/trade/asyn|\n",
    "|get_trade_asyn_id|通过下载Id获取合约交易历史下载链接 (USER_DATA)|/fapi/v1/trade/asyn/id|\n",
    "\n",
    "### 2.2 行情接口 UMMarket\n",
    "\n",
    "```python\n",
    "from binance_interface.api.um import UMMarket\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_ping|测试服务器连通性 PING|/fapi/v1/ping|\n",
    "|get_time|获取服务器时间|/fapi/v1/time|\n",
    "|get_exchangeInfo|获取交易规则和交易对|/fapi/v1/exchangeInfo|\n",
    "|get_depth|深度信息|/fapi/v1/depth|\n",
    "|get_trades|近期成交|/fapi/v1/trades|\n",
    "|get_historicalTrades|查询历史成交(MARKET_DATA)|/fapi/v1/historicalTrades|\n",
    "|get_aggTrades|近期成交(归集)|/fapi/v1/aggTrades|\n",
    "|get_klines|K线数据|/fapi/v1/klines|\n",
    "|get_continuousKlines|连续合约K线数据|/fapi/v1/continuousKlines|\n",
    "|get_indexPriceKlines|价格指数K线数据|/fapi/v1/indexPriceKlines|\n",
    "|get_markPriceKlines|标记价格K线数据|/fapi/v1/markPriceKlines|\n",
    "|get_premiumIndexKlines|溢价指数K线数据|/fapi/v1/premiumIndexKlines|\n",
    "|get_premiumIndex|最新标记价格和资金费率|/fapi/v1/premiumIndex|\n",
    "|get_fundingRate|查询资金费率历史|/fapi/v1/fundingRate|\n",
    "|get_fundingInfo|查询资金费率信息|/fapi/v1/fundingInfo|\n",
    "|get_ticker_24hr|24hr价格变动情况|/fapi/v1/ticker/24hr|\n",
    "|get_ticker_price_v1|最新价格|/fapi/v1/ticker/price|\n",
    "|get_ticker_price|最新价格V2|/fapi/v2/ticker/price|\n",
    "|get_ticker_bookTicker|当前最优挂单|/fapi/v1/ticker/bookTicker|\n",
    "|get_openInterest|获取未平仓合约数|/fapi/v1/openInterest|\n",
    "|get_delivery_price|季度合约历史结算价|/futures/data/delivery-price|\n",
    "|get_openInterestHist|合约持仓量|/futures/data/openInterestHist|\n",
    "|get_topLongShortAccountRatio|大户账户数多空比|/futures/data/topLongShortAccountRatio|\n",
    "|get_topLongShortPositionRatio|大户持仓量多空比|/futures/data/topLongShortPositionRatio|\n",
    "|get_globalLongShortAccountRatio|多空持仓人数比|/futures/data/globalLongShortAccountRatio|\n",
    "|get_takerlongshortRatio|合约主动买卖量|/futures/data/takerlongshortRatio|\n",
    "|get_basis|基差|/futures/data/basis|\n",
    "|get_lvtKlines|杠杆代币历史净值K线|/fapi/v1/lvtKlines|\n",
    "|get_indexInfo|综合指数交易对信息|/fapi/v1/indexInfo|\n",
    "|get_assetIndex|多资产模式资产汇率指数|/fapi/v1/assetIndex|\n",
    "|get_constituents|查询指数价格成分|/fapi/v1/constituents|\n",
    "\n",
    "### 2.3 经典统一账户 UMPortfolio\n",
    "\n",
    "```python\n",
    "from binance_interface.api.um import UMPortfolio\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_pmAccountInfo|查询经典统一账户账户信息 (USER_DATA)|/fapi/v1/pmAccountInfo|\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e52672d0",
   "metadata": {},
   "source": [
    "## 3. 币本位合约 CM\n",
    "\n",
    "```python\n",
    "from binance_interface.api.cm import CM\n",
    "```\n",
    "\n",
    "### 3.1 账户和交易接口 CMAccountTrade\n",
    "\n",
    "```python\n",
    "from binance_interface.api.cm import CMAccountTrade\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|set_positionSide_dual|更改持仓模式|/dapi/v1/positionSide/dual|\n",
    "|get_positionSide_dual|查询持仓模式|/dapi/v1/positionSide/dual|\n",
    "|set_order|下单|/dapi/v1/order|\n",
    "|set_order_test|测试下单接口 (TRADE)|/dapi/v1/order/test|\n",
    "|alter_order|修改订单|/dapi/v1/order|\n",
    "|set_batchOrders|批量下单|/dapi/v1/batchOrders|\n",
    "|alter_batchOrders|批量修改订单|/dapi/v1/batchOrders|\n",
    "|get_orderAmendment|查询订单修改历史|/dapi/v1/orderAmendment|\n",
    "|get_order|查询订单|/dapi/v1/order|\n",
    "|cancel_order|撤销订单|/dapi/v1/order|\n",
    "|cancel_allOpenOrders|撤销全部订单|/dapi/v1/allOpenOrders|\n",
    "|cancel_batchOrders|批量撤销订单|/dapi/v1/batchOrders|\n",
    "|set_countdownCancelAll|倒计时撤销所有订单|/dapi/v1/countdownCancelAll|\n",
    "|get_openOrder|查询当前挂单|/dapi/v1/openOrder|\n",
    "|get_openOrders|查看当前全部挂单|/dapi/v1/openOrders|\n",
    "|get_allOrders|查询所有订单(包括历史订单)|/dapi/v1/allOrders|\n",
    "|get_balance|账户余额|/dapi/v1/balance|\n",
    "|get_account|账户信息|/dapi/v1/account|\n",
    "|set_leverage|调整开仓杠杆|/dapi/v1/leverage|\n",
    "|set_marginType|变换逐全仓模式|/dapi/v1/marginType|\n",
    "|set_positionMargin|调整逐仓保证金|/dapi/v1/positionMargin|\n",
    "|get_positionMargin_history|逐仓保证金变动历史|/dapi/v1/positionMargin/history|\n",
    "|get_positionRisk|用户持仓风险|/dapi/v1/positionRisk|\n",
    "|get_userTrades|账户成交历史|/dapi/v1/userTrades|\n",
    "|get_income|获取账户损益资金流水|/dapi/v1/income|\n",
    "|get_leverageBracket_by_pair|标的交易对默认杠杆分层标准 (USER_DATA)|/dapi/v2/leverageBracket|\n",
    "|get_leverageBracket_by_symbol|交易对杠杆分层标准 (USER_DATA)|/dapi/v2/leverageBracket|\n",
    "|get_forceOrders|用户强平单历史|/dapi/v1/forceOrders|\n",
    "|get_adlQuantile|持仓ADL队列估算|/dapi/v1/adlQuantile|\n",
    "|get_commissionRate|用户手续费率|/dapi/v1/commissionRate|\n",
    "|get_income_asyn|获取合约资金流水下载Id|/dapi/v1/income/asyn|\n",
    "|get_income_asyn_id|通过下载Id获取合约资金流水下载链接 (USER_DATA)|/dapi/v1/income/asyn/id|\n",
    "\n",
    "### 3.2 行情接口 CMMarket\n",
    "\n",
    "```python\n",
    "from binance_interface.api.cm import CMMarket\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_ping|测试服务器连通性 PING|/dapi/v1/ping|\n",
    "|get_time|获取服务器时间|/dapi/v1/time|\n",
    "|get_exchangeInfo|获取交易规则和交易对|/dapi/v1/exchangeInfo|\n",
    "|get_depth|深度信息|/dapi/v1/depth|\n",
    "|get_trades|近期成交|/dapi/v1/trades|\n",
    "|get_historicalTrades|查询历史成交 (MARKET_DATA)|/dapi/v1/historicalTrades|\n",
    "|get_aggTrades|近期成交(归集)|/dapi/v1/aggTrades|\n",
    "|get_premiumIndex|最新现货指数价格和Mark Price|/dapi/v1/premiumIndex|\n",
    "|get_fundingRate|查询永续合约资金费率历史|/dapi/v1/fundingRate|\n",
    "|get_fundingInfo|查询资金费率信息|/dapi/v1/fundingInfo|\n",
    "|get_klines|K线数据|/dapi/v1/klines|\n",
    "|get_continuousKlines|连续合约K线数据|/dapi/v1/continuousKlines|\n",
    "|get_indexPriceKlines|价格指数K线数据|/dapi/v1/indexPriceKlines|\n",
    "|get_markPriceKlines|标记价格K线数据|/dapi/v1/markPriceKlines|\n",
    "|get_premiumIndexKlines|溢价指数K线数据|/dapi/v1/premiumIndexKlines|\n",
    "|get_ticker_24hr|24hr价格变动情况|/dapi/v1/ticker/24hr|\n",
    "|get_ticker_price|最新价格|/dapi/v1/ticker/price|\n",
    "|get_ticker_bookTicker|当前最优挂单|/dapi/v1/ticker/bookTicker|\n",
    "|get_constituents|查询指数价格成分|/dapi/v1/constituents|\n",
    "|get_openInterest|获取未平仓合约数|/dapi/v1/openInterest|\n",
    "|get_delivery_price|季度合约历史结算价|/futures/data/delivery-price|\n",
    "|get_openInterestHist|合约持仓量|/futures/data/openInterestHist|\n",
    "|get_topLongShortAccountRatio|大户账户数多空比|/futures/data/topLongShortAccountRatio|\n",
    "|get_topLongShortPositionRatio|大户持仓量多空比|/futures/data/topLongShortPositionRatio|\n",
    "|get_globalLongShortAccountRatio|多空持仓人数比|/futures/data/globalLongShortAccountRatio|\n",
    "|get_takerBuySellVol|合约主动买卖量|/futures/data/takerBuySellVol|\n",
    "|get_basis|基差|/futures/data/basis|\n",
    "\n",
    "### 3.3 经典统一账户接口 CMPortfolio\n",
    "\n",
    "```python\n",
    "from binance_interface.api.cm import CMPortfolio\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_pmExchangeInfo|查询经典统一账户Notional Limit|/dapi/v1/pmExchangeInfo|\n",
    "|get_pmAccountInfo|查询经典统一账户账户信息 (USER_DATA)|/dapi/v1/pmAccountInfo|\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6d6b8021",
   "metadata": {},
   "source": [
    "## 4. 欧式期权 EO\n",
    "\n",
    "```python\n",
    "from binance_interface.api.eo import EO\n",
    "```\n",
    "\n",
    "### 4.1 账户和交易接口 EOAccountTrade\n",
    "\n",
    "```python\n",
    "from binance_interface.api.eo import EOAccountTrade\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_account|账户信息|/eapi/v1/account|\n",
    "|set_order|下单|/eapi/v1/order|\n",
    "|set_batchOrders|批量下单|/eapi/v1/batchOrders|\n",
    "|get_order|查询单个订单|/eapi/v1/order|\n",
    "|cancel_order|撤销订单|/eapi/v1/order|\n",
    "|cancel_batchOrders|批量撤销订单|/eapi/v1/batchOrders|\n",
    "|cancel_allOpenOrders|撤销单交易对全部订单|/eapi/v1/allOpenOrders|\n",
    "|cancel_allOpenOrdersByUnderlying|撤销特定标的全部订单|/eapi/v1/allOpenOrdersByUnderlying|\n",
    "|get_openOrders|查询当前挂单|/eapi/v1/openOrders|\n",
    "|get_historyOrders|查询历史订单|/eapi/v1/historyOrders|\n",
    "|get_position|仓位信息|/eapi/v1/position|\n",
    "|get_userTrades|账户成交历史|/eapi/v1/userTrades|\n",
    "|get_exerciseRecord|用户行权历史|/eapi/v1/exerciseRecord|\n",
    "|get_bill|获取账户资金流水|/eapi/v1/bill|\n",
    "|get_income_asyn|获取期权资金流水下载Id|/eapi/v1/income/asyn|\n",
    "|get_income_asyn_id|通过下载Id获取合约资金流水下载链接 (USER_DATA)|/eapi/v1/income/asyn/id|\n",
    "\n",
    "### 4.2 行情接口 EOMarket\n",
    "\n",
    "```python\n",
    "from binance_interface.api.eo import EOMarket\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_ping|测试服务器连通性 PING【|/eapi/v1/ping|\n",
    "|get_time|获取服务器时间【|/eapi/v1/time|\n",
    "|get_exchangeInfo|获取交易规则和交易对【|/eapi/v1/exchangeInfo|\n",
    "|get_depth|深度信息|/eapi/v1/depth|\n",
    "|get_trades|近期成交|/eapi/v1/trades|\n",
    "|get_historicalTrades|查询历史成交(MARKET_DATA)|/eapi/v1/historicalTrades|\n",
    "|get_klines|K线数据|/eapi/v1/klines|\n",
    "|get_mark|查询期权标记价格|/eapi/v1/mark|\n",
    "|get_ticker|24hr价格变动情况|/eapi/v1/ticker|\n",
    "|get_index|标的最新价格|/eapi/v1/index|\n",
    "|get_exerciseHistory|历史行权记录|/eapi/v1/exerciseHistory|\n",
    "|get_openInterest|合约持仓量|/eapi/v1/openInterest|\n",
    "\n",
    "### 4.3 做市商接口 EOMarketMaker\n",
    "\n",
    "```python\n",
    "from binance_interface.api.eo import EOMarketMaker\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_marginAccount|保证金账户信息|/eapi/v1/marginAccount|\n",
    "|set_mmpSet|设置MMP规则|/eapi/v1/mmpSet|\n",
    "|get_mmpSet|获取MMP规则|/eapi/v1/mmpSet|\n",
    "|set_mmpReset|重置MMP状态|/eapi/v1/mmpReset|\n",
    "|set_countdownCancelAll|设置倒计时取消所有订单配置|/eapi/v1/countdownCancelAll|\n",
    "|get_countdownCancelAll|获得倒计时自动取消所有订单配置|/eapi/v1/countdownCancelAll|\n",
    "|set_countdownCancelAllHeartBeat|重置倒计时取消所有订单心跳 (TRADE)|/eapi/v1/countdownCancelAllHeartBeat|\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8bfdbc52",
   "metadata": {},
   "source": [
    "## 5 杠杆 Margin\n",
    "\n",
    "```python\n",
    "from binance_interface.api.margin import Margin\n",
    "```\n",
    "\n",
    "### 5.1 杠杆账户和交易接口 MarginAccountTrade\n",
    "\n",
    "```python\n",
    "from binance_interface.api.margin import MarginAccountTrade\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|set_margin_transfer|全仓杠杆账户划转 (MARGIN)|/sapi/v1/margin/transfer|\n",
    "|set_margin_loan|杠杆账户借贷 (MARGIN)|/sapi/v1/margin/loan|\n",
    "|set_margin_repay|杠杆账户归还借贷 (MARGIN)|/sapi/v1/margin/repay|\n",
    "|get_margin_asset|查询杠杆资产 (MARKET_DATA)|/sapi/v1/margin/asset|\n",
    "|get_margin_pair|查询全仓杠杆交易对 (MARKET_DATA)|/sapi/v1/margin/pair|\n",
    "|get_margin_allAssets|获取所有杠杆资产信息 (MARKET_DATA)|/sapi/v1/margin/allAssets|\n",
    "|get_margin_allPairs|获取所有全仓杠杆交易对(MARKET_DATA)|/sapi/v1/margin/allPairs|\n",
    "|get_margin_priceIndex|查询杠杆价格指数 (MARKET_DATA)|/sapi/v1/margin/priceIndex|\n",
    "|set_margin_order|杠杆账户下单|/sapi/v1/margin/order|\n",
    "|cancel_margin_order|杠杆账户撤销订单|/sapi/v1/margin/order|\n",
    "|cancel_margin_openOrders|杠杆账户撤销单一交易对的所有挂单|/sapi/v1/margin/openOrders|\n",
    "|set_margin_max_leverage|调整全仓最大杠杆|/sapi/v1/margin/max-leverage|\n",
    "|get_margin_transfer|获取全仓杠杆划转历史|/sapi/v1/margin/transfer|\n",
    "|get_margin_loan|查询借贷记录|/sapi/v1/margin/loan|\n",
    "|get_margin_repay|查询还贷记录|/sapi/v1/margin/repay|\n",
    "|get_margin_interestHistory|获取利息历史|/sapi/v1/margin/interestHistory|\n",
    "|get_margin_forceLiquidationRec|获取账户强制平仓记录|/sapi/v1/margin/forceLiquidationRec|\n",
    "|get_margin_account|查询全仓杠杆账户详情|/sapi/v1/margin/account|\n",
    "|get_margin_order|查询杠杆账户订单|/sapi/v1/margin/order|\n",
    "|get_margin_openOrders|查询杠杆账户挂单记录|/sapi/v1/margin/openOrders|\n",
    "|get_margin_allOrders|查询杠杆账户的所有订单|/sapi/v1/margin/allOrders|\n",
    "|set_margin_order_oco|杠杆账户 OCO 下单|/sapi/v1/margin/order/oco|\n",
    "|cancel_margin_orderList|取消杠杆账户 OCO 订单|/sapi/v1/margin/orderList|\n",
    "|get_margin_orderList|查询杠杆账户 OCO|/sapi/v1/margin/orderList|\n",
    "|get_margin_allOrderList|查询特定杠杆账户所有 OCO|/sapi/v1/margin/allOrderList|\n",
    "|get_margin_openOrderList|查询杠杆账户 OCO 挂单|/sapi/v1/margin/openOrderList|\n",
    "|get_margin_myTrades|查询杠杆账户交易历史|/sapi/v1/margin/myTrades|\n",
    "|get_margin_maxBorrowable|查询账户最大可借贷额度|/sapi/v1/margin/maxBorrowable|\n",
    "|get_margin_maxTransferable|查询最大可转出额|/sapi/v1/margin/maxTransferable|\n",
    "|get_margin_tradeCoeff|查询Margin账户信息汇总|/sapi/v1/margin/tradeCoeff|\n",
    "|set_margin_isolated_transfer|杠杆逐仓账户划转 (MARGIN)|/sapi/v1/margin/isolated/transfer|\n",
    "|get_margin_isolated_transfer|获取杠杆逐仓划转历史|/sapi/v1/margin/isolated/transfer|\n",
    "|get_margin_isolated_account|查询杠杆逐仓账户信息|/sapi/v1/margin/isolated/account|\n",
    "|cancel_margin_isolated_account|杠杆逐仓账户停用|/sapi/v1/margin/isolated/account|\n",
    "|set_margin_isolated_account|杠杆逐仓账户启用|/sapi/v1/margin/isolated/account|\n",
    "|get_margin_isolated_accountLimit|查询杠杆逐仓账户启用限制|/sapi/v1/margin/isolated/accountLimit|\n",
    "|get_margin_isolated_pair|查询逐仓杠杆交易对|/sapi/v1/margin/isolated/pair|\n",
    "|get_margin_isolated_allPairs|获取所有逐仓杠杆交易对|/sapi/v1/margin/isolated/allPairs|\n",
    "|set_bnbBurn|现货交易和杠杆利息BNB抵扣开关|/sapi/v1/bnbBurn|\n",
    "|get_bnbBurn|获取BNB抵扣开关状态|/sapi/v1/bnbBurn|\n",
    "|get_margin_interestRateHistory|获取杠杆利率历史|/sapi/v1/margin/interestRateHistory|\n",
    "|get_margin_crossMarginData|获取全仓杠杆利率及限额|/sapi/v1/margin/crossMarginData|\n",
    "|get_margin_isolatedMarginData|获取逐仓杠杆利率及限额|/sapi/v1/margin/isolatedMarginData|\n",
    "|get_margin_isolatedMarginTier|获取逐仓档位信息|/sapi/v1/margin/isolatedMarginTier|\n",
    "|get_margin_rateLimit_order|查询目前杠杆账户下单数|/sapi/v1/margin/rateLimit/order|\n",
    "|get_margin_dribblet|杠杆小额资产转换BNB历史|/sapi/v1/margin/dribblet|\n",
    "|get_margin_dust|获取可以转换成BNB的小额资产|/sapi/v1/margin/dust|\n",
    "|set_margin_dust|杠杆小额资产转换|/sapi/v1/margin/dust|\n",
    "|get_margin_crossMarginCollateralRatio|全仓币种质押率 (MARKET_DATA)|/sapi/v1/margin/crossMarginCollateralRatio|\n",
    "|get_margin_exchange_small_liability|查询可小额负债转换的资产|/sapi/v1/margin/exchange-small-liability|\n",
    "|set_margin_exchange_small_liability|全仓杠杆小额负债转换 (MARGIN)|/sapi/v1/margin/exchange-small-liability|\n",
    "|get_margin_exchange_small_liability_history|查询全仓杠杆小额负债转换历史|/sapi/v1/margin/exchange-small-liability-history|\n",
    "|get_margin_next_hourly_interest_rate|查询下小时预估利率|/sapi/v1/margin/next-hourly-interest-rate|\n",
    "|get_margin_capital_flow|查询全仓/逐仓资金流水|/sapi/v1/margin/capital-flow|\n",
    "|get_margin_delist_schedule|查询全仓和逐仓的币种或币对的下架计划 (MARKET_DATA)|/sapi/v1/margin/delist-schedule|\n",
    "|get_margin_available_inventory|杠杆可用放贷库存查询|/sapi/v1/margin/available-inventory|\n",
    "|set_margin_manual_liquidation|杠杆手动强平(MARGIN)|/sapi/v1/margin/manual-liquidation|\n",
    "|get_margin_leverageBracket|查询全仓杠杆Pro模式下的负债币种杠杆与保证金率(MARKET_DATA)|/sapi/v1/margin/leverageBracket|\n",
    "\n",
    "### 5.2 杠杆代币接口 MarginBlvt\n",
    "\n",
    "```python\n",
    "from binance_interface.api.margin import MarginBlvt\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_blvt_tokenInfo|杠杆代币信息 (MARKET_DATA)|/sapi/v1/blvt/tokenInfo|\n",
    "|set_blvt_subscribe|申购代币|/sapi/v1/blvt/subscribe|\n",
    "|get_blvt_subscribe_record|查询申购记录|/sapi/v1/blvt/subscribe/record|\n",
    "|set_blvt_redeem|赎回代币|/sapi/v1/blvt/redeem|\n",
    "|get_blvt_redeem_record|查询赎回记录|/sapi/v1/blvt/redeem/record|\n",
    "|get_blvt_userLimit|查询用户每日申购赎回限额 (USER_DATA)|/sapi/v1/blvt/userLimit|\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "62c0ab7c",
   "metadata": {},
   "source": [
    "## 6. 其他接口 Other\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import Other\n",
    "```\n",
    "\n",
    "### 6.1 定投接口 AutoInvest\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import AutoInvest\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_lending_auto_invest_target_asset_list|查询允许申购币种列表|/sapi/v1/lending/auto-invest/target-asset/list|\n",
    "|get_lending_auto_invest_target_asset_roi_list|查询申购币种投资回报率|/sapi/v1/lending/auto-invest/target-asset/roi/list|\n",
    "|get_lending_auto_invest_all_asset|查询申购币种和投资币种列表|/sapi/v1/lending/auto-invest/all/asset|\n",
    "|get_lending_auto_invest_source_asset_list|查询投资币种列表|/sapi/v1/lending/auto-invest/source-asset/list|\n",
    "|set_lending_auto_invest_plan_add|创建定投计划|/sapi/v1/lending/auto-invest/plan/add|\n",
    "|set_lending_auto_invest_plan_edit|编辑定投计划|/sapi/v1/lending/auto-invest/plan/edit|\n",
    "|set_lending_auto_invest_plan_edit_status|定投计划状态管理|/sapi/v1/lending/auto-invest/plan/edit-status|\n",
    "|get_lending_auto_invest_plan_list|查询定投计划列表|/sapi/v1/lending/auto-invest/plan/list|\n",
    "|get_lending_auto_invest_plan_id|查询定投计划详情|/sapi/v1/lending/auto-invest/plan/id|\n",
    "|get_lending_auto_invest_history_list|查询申购历史|/sapi/v1/lending/auto-invest/history/list|\n",
    "|get_lending_auto_invest_index_info|查询指数信息|/sapi/v1/lending/auto-invest/index/info|\n",
    "|get_lending_auto_invest_index_user_summary|查询指数关连计划详情（USER_DATA）|/sapi/v1/lending/auto-invest/index/user-summary|\n",
    "|set_lending_auto_invest_one_off|单次申购|/sapi/v1/lending/auto-invest/one-off|\n",
    "|get_lending_auto_invest_one_off_status|单次申购交易结果查询|/sapi/v1/lending/auto-invest/one-off/status|\n",
    "|set_lending_auto_invest_redeem|指数关连计划赎回交易|/sapi/v1/lending/auto-invest/redeem|\n",
    "|get_lending_auto_invest_redeem_history|指数关连计划赎回交易历史查询|/sapi/v1/lending/auto-invest/redeem/history|\n",
    "|get_lending_auto_invest_rebalance_history|指数关连计划调仓历史记录(USER_DATA)|/sapi/v1/lending/auto-invest/rebalance/history|\n",
    "\n",
    "### 6.2 币安挖矿接口 BsWap\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import BsWap\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_bswap_pools|获取所有流动资金池 (MARKET_DATA)|/sapi/v1/bswap/pools|\n",
    "|get_bswap_liquidity|获取流动资金池具体信息|/sapi/v1/bswap/liquidity|\n",
    "|set_bswap_liquidityAdd|添加流动性|/sapi/v1/bswap/liquidityAdd|\n",
    "|set_bswap_liquidityRemove|移除流动性|/sapi/v1/bswap/liquidityRemove|\n",
    "|get_bswap_liquidityOps|获取流动性操作记录|/sapi/v1/bswap/liquidityOps|\n",
    "|get_bswap_quote|获取报价|/sapi/v1/bswap/quote|\n",
    "|set_bswap_swap|交易|/sapi/v1/bswap/swap|\n",
    "|get_bswap_swap|获取交易记录|/sapi/v1/bswap/swap|\n",
    "|get_bswap_poolConfigure|获取币对池的配置信息|/sapi/v1/bswap/poolConfigure|\n",
    "|get_bswap_addLiquidityPreview|添加流动性的试算|/sapi/v1/bswap/addLiquidityPreview|\n",
    "|get_bswap_removeLiquidityPreview|移除流动性的试算|/sapi/v1/bswap/removeLiquidityPreview|\n",
    "|get_bswap_unclaimedRewards|查询未领取的奖励数量|/sapi/v1/bswap/unclaimedRewards|\n",
    "|set_bswap_claimRewards|领取奖励|/sapi/v1/bswap/claimRewards|\n",
    "|get_bswap_claimedHistory|获取已领取奖励记录 (USER_DATA)|/sapi/v1/bswap/claimedHistory|\n",
    "\n",
    "### 6.3 C2C接口 C2C\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import C2C\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_c2c_orderMatch_listUserOrderHistory|获取 C2C 交易历史记录 (USER_DATA)|/sapi/v1/c2c/orderMatch/listUserOrderHistory|\n",
    "\n",
    "### 6.4 闪兑接口 Convert\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import Convert\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_convert_exchangeInfo|查询可交易币对信息|/sapi/v1/convert/exchangeInfo|\n",
    "|get_convert_assetInfo|查询可交易币种精度|/sapi/v1/convert/assetInfo|\n",
    "|set_convert_getQuote|发送获取报价请求|/sapi/v1/convert/getQuote|\n",
    "|set_convert_acceptQuote|接受报价|/sapi/v1/convert/acceptQuote|\n",
    "|get_convert_orderStatus|查询订单状态|/sapi/v1/convert/orderStatus|\n",
    "|get_convert_tradeFlow|获取闪兑交易记录 (USER_DATA)|/sapi/v1/convert/tradeFlow|\n",
    "\n",
    "### 6.5 质押借币接口 CryptoLoans\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import CryptoLoans\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_loan_income|获取质押借币资金流水|/sapi/v1/loan/income|\n",
    "|set_loan_borrow|借币 - 质押借币借贷|/sapi/v1/loan/borrow|\n",
    "|get_loan_borrow_history|借币 - 查询质押借币历史记录|/sapi/v1/loan/borrow/history|\n",
    "|get_loan_ongoing_orders|借币 - 查询借款中订单列表|/sapi/v1/loan/ongoing/orders|\n",
    "|set_loan_repay|还款 - 质押借币还款|/sapi/v1/loan/repay|\n",
    "|get_loan_repay_history|还款 - 查询还款记录历史|/sapi/v1/loan/repay/history|\n",
    "|set_loan_adjust_ltv|调整质押率 - 质押借币调整质押率|/sapi/v1/loan/adjust/ltv|\n",
    "|get_loan_ltv_adjustment_history|调整质押率 - 查询质押率调整历史|/sapi/v1/loan/ltv/adjustment/history|\n",
    "|get_loan_loanable_data|查询可借币种数据|/sapi/v1/loan/loanable/data|\n",
    "|get_loan_collateral_data|查询抵押币种数据|/sapi/v1/loan/collateral/data|\n",
    "|get_loan_repay_collateral_rate|查询抵押币种还款汇率|/sapi/v1/loan/repay/collateral/rate|\n",
    "|set_loan_customize_margin_call|质押借币自定义补仓质押率|/sapi/v1/loan/customize/margin_call|\n",
    "|set_loan_flexible_borrow|借币 - 活期借币借贷|/sapi/v1/loan/flexible/borrow|\n",
    "|get_loan_flexible_ongoing_orders|借币 - 查询活期借款中订单列表|/sapi/v1/loan/flexible/ongoing/orders|\n",
    "|get_loan_flexible_borrow_history|借币 - 查询活期借币历史记录|/sapi/v1/loan/flexible/borrow/history|\n",
    "|set_loan_flexible_repay|还款 - 活期借币还款|/sapi/v1/loan/flexible/repay|\n",
    "|get_loan_flexible_repay_history|还款 - 查询活期借币还款记录历史|/sapi/v1/loan/flexible/repay/history|\n",
    "|set_loan_flexible_adjust_ltv|调整质押率 - 活期借币调整质押率|/sapi/v1/loan/flexible/adjust/ltv|\n",
    "|get_loan_flexible_ltv_adjustment_history|调整质押率 - 查询活期借币质押率调整历史 TODO|/sapi/v1/loan/flexible/ltv/adjustment/history|\n",
    "|get_loan_flexible_loanable_data|查询活期借币可借币种数据|/sapi/v1/loan/flexible/loanable/data|\n",
    "|get_loan_flexible_collateral_data|查询活期借币抵押币种数据 (USER_DATA)|/sapi/v1/loan/flexible/collateral/data|\n",
    "\n",
    "### 6.6 法币接口 Fiat\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import Fiat\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_fiat_orders|获取法币充值/提现历史记录|/sapi/v1/fiat/orders|\n",
    "|get_fiat_payments|获取法币支付历史记录 (USER_DATA)|/sapi/v1/fiat/payments|\n",
    "\n",
    "### 6.7 合约接口 Futures\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import Futures\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|set_futures_transfer|合约资金划转|/sapi/v1/futures/transfer|\n",
    "|get_futures_transfer|获取合约资金划转历史|/sapi/v1/futures/transfer|\n",
    "|get_futures_histDataLink|获取合约订单薄历史数据下载地址(USER_DATA)|/sapi/v1/futures/histDataLink|\n",
    "\n",
    "### 6.8 合约策略交易接口 FuturesAlgo\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import FuturesAlgo\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|set_algo_futures_newOrderVp|成交量份额参与算法(VP)下单|/sapi/v1/algo/futures/newOrderVp|\n",
    "|set_algo_futures_newOrderTwap|时间加权平均价格策略(Twap)下单|/sapi/v1/algo/futures/newOrderTwap|\n",
    "|cancel_algo_futures_order|取消策略订单|/sapi/v1/algo/futures/order|\n",
    "|get_algo_futures_openOrders|查询当前策略订单挂单|/sapi/v1/algo/futures/openOrders|\n",
    "|get_algo_futures_historicalOrders|查询历史策略订单|/sapi/v1/algo/futures/historicalOrders|\n",
    "|get_algo_futures_subOrders|查询执行子订单 (USER_DATA)|/sapi/v1/algo/futures/subOrders|\n",
    "\n",
    "### 6.9 币安礼品卡接口 GiftCard\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import GiftCard\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|set_giftcard_createCode|创建单币种礼品卡|/sapi/v1/giftcard/createCode|\n",
    "|set_giftcard_buyCode|创建双币种礼品卡（固定价值，设置折扣）|/sapi/v1/giftcard/buyCode|\n",
    "|set_giftcard_redeemCode|兑现币安礼品卡|/sapi/v1/giftcard/redeemCode|\n",
    "|get_giftcard_verify|通过礼品卡卡号验证币安礼品卡|/sapi/v1/giftcard/verify|\n",
    "|get_giftcard_cryptography_rsa_public_key|获取RSA Public Key|/sapi/v1/giftcard/cryptography/rsa-public-key|\n",
    "|get_giftcard_buyCode_token_limit|获取货币使用限制 (USER_DATA)|/sapi/v1/giftcard/buyCode/token-limit|\n",
    "\n",
    "### 6.10 矿池接口 Mining\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import Mining\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_mining_pub_algoList|获取算法(MARKET_DATA)|/sapi/v1/mining/pub/algoList|\n",
    "|get_mining_pub_coinList|获取币种(MARKET_DATA)|/sapi/v1/mining/pub/coinList|\n",
    "|get_mining_worker_detail|请求矿工列表明细|/sapi/v1/mining/worker/detail|\n",
    "|get_mining_worker_list|请求矿工列表|/sapi/v1/mining/worker/list|\n",
    "|get_mining_payment_list|收益列表|/sapi/v1/mining/payment/list|\n",
    "|get_mining_payment_other|其他收益列表|/sapi/v1/mining/payment/other|\n",
    "|get_mining_hash_transfer_config_details|算力转让详情列表|/sapi/v1/mining/hash-transfer/config/details|\n",
    "|get_mining_hash_transfer_config_details_list|算力转让列表|/sapi/v1/mining/hash-transfer/config/details/list|\n",
    "|get_mining_hash_transfer_profit_details|算力转让详情|/sapi/v1/mining/hash-transfer/profit/details|\n",
    "|set_mining_hash_transfer_config|算力转让请求|/sapi/v1/mining/hash-transfer/config|\n",
    "|set_mining_hash_transfer_config_cancel|取消算力转让设置|/sapi/v1/mining/hash-transfer/config/cancel|\n",
    "|get_mining_statistics_user_status|统计列表|/sapi/v1/mining/statistics/user/status|\n",
    "|get_mining_statistics_user_list|账号列表|/sapi/v1/mining/statistics/user/list|\n",
    "|get_mining_payment_uid|矿池账户收益列表 (USER_DATA)|/sapi/v1/mining/payment/uid|\n",
    "\n",
    "### 6.11 NFT接口 Nft\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import Nft\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_nft_history_transactions|获取 NFT 资金流水记录|/sapi/v1/nft/history/transactions|\n",
    "|get_nft_history_deposit|获取 NFT 充值记录|/sapi/v1/nft/history/deposit|\n",
    "|get_nft_history_withdraw|获取 NFT 提现记录|/sapi/v1/nft/history/withdraw|\n",
    "|get_nft_user_getAsset|获取 NFT 资产 (USER_DATA)|/sapi/v1/nft/user/getAsset|\n",
    "\n",
    "### 6.12 Pay接口 Pay\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import Pay\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_pay_transactions|获取 Pay 交易历史记录 (USER_DATA)|/sapi/v1/pay/transactions|\n",
    "\n",
    "### 6.13 经典统一账户接口 Portfolio\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import Portfolio\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_portfolio_account|查询经典统一账户信息|/sapi/v1/portfolio/account|\n",
    "|get_portfolio_collateralRate|经典统一账户资产质押率 (MARKET_DATA)|/sapi/v1/portfolio/collateralRate|\n",
    "|get_portfolio_pmLoan|查询经典统一账户穿仓借贷金额|/sapi/v1/portfolio/pmLoan|\n",
    "|set_portfolio_repay|偿还经典统一账户穿仓负债|/sapi/v1/portfolio/repay|\n",
    "|get_portfolio_interest_history|查询经典统一账户期货负余额收息历史|/sapi/v1/portfolio/interest-history|\n",
    "|get_portfolio_asset_index_price|查询统一账户资产价格指数(MARKET_DATA)|/sapi/v1/portfolio/asset-index-price|\n",
    "|set_portfolio_auto_collection|资金归集|/sapi/v1/portfolio/auto-collection|\n",
    "|set_portfolio_asset_collection|特定资产资金归集|/sapi/v1/portfolio/asset-collection|\n",
    "|set_portfolio_bnb_transfer|BNB划转|/sapi/v1/portfolio/bnb-transfer|\n",
    "|set_portfolio_repay_futures_switch|更改自动清还合约负余额模式|/sapi/v1/portfolio/repay-futures-switch|\n",
    "|get_portfolio_repay_futures_switch|查询自动清还合约负余额模式|/sapi/v1/portfolio/repay-futures-switch|\n",
    "|set_portfolio_repay_futures_negative_balance|清还合约负余额|/sapi/v1/portfolio/repay-futures-negative-balance|\n",
    "|get_portfolio_margin_asset_leverage|查询统一账户资产支持杠杆倍数(USER_DATA)|/sapi/v1/portfolio/margin-asset-leverage|\n",
    "\n",
    "### 6.14 返佣接口 Rebate\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import Rebate\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_rebate_taxQuery|获取现货返佣历史记录 (USER_DATA)|/sapi/v1/rebate/taxQuery|\n",
    "\n",
    "### 6.15 赚币接口 SimpleEarn\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import SimpleEarn\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_simple_earn_flexible_list|查询赚币活期产品列表|/sapi/v1/simple-earn/flexible/list|\n",
    "|get_simple_earn_locked_list|查询赚币定期产品列表|/sapi/v1/simple-earn/locked/list|\n",
    "|set_simple_earn_flexible_subscribe|申购活期产品|/sapi/v1/simple-earn/flexible/subscribe|\n",
    "|set_simple_earn_locked_subscribe|申购定期产品|/sapi/v1/simple-earn/locked/subscribe|\n",
    "|set_simple_earn_flexible_redeem|赎回活期产品|/sapi/v1/simple-earn/flexible/redeem|\n",
    "|set_simple_earn_locked_redeem|赎回定期产品|/sapi/v1/simple-earn/locked/redeem|\n",
    "|get_simple_earn_flexible_position|获取活期产品持仓|/sapi/v1/simple-earn/flexible/position|\n",
    "|get_simple_earn_locked_position|获取定期产品持仓|/sapi/v1/simple-earn/locked/position|\n",
    "|get_simple_earn_account|赚币账户|/sapi/v1/simple-earn/account|\n",
    "|get_simple_earn_flexible_history_subscriptionRecord|查询活期申购记录|/sapi/v1/simple-earn/flexible/history/subscriptionRecord|\n",
    "|get_simple_earn_locked_history_subscriptionRecord|查询定期申购记录|/sapi/v1/simple-earn/locked/history/subscriptionRecord|\n",
    "|get_simple_earn_flexible_history_redemptionRecord|查询活期赎回记录|/sapi/v1/simple-earn/flexible/history/redemptionRecord|\n",
    "|get_simple_earn_locked_history_redemptionRecord|查询定期赎回记录|/sapi/v1/simple-earn/locked/history/redemptionRecord|\n",
    "|get_simple_earn_flexible_history_rewardsRecord|查询活期收益记录|/sapi/v1/simple-earn/flexible/history/rewardsRecord|\n",
    "|get_simple_earn_locked_history_rewardsRecord|查询定期收益记录|/sapi/v1/simple-earn/locked/history/rewardsRecord|\n",
    "|set_simple_earn_flexible_setAutoSubscribe|设置活期自动申购|/sapi/v1/simple-earn/flexible/setAutoSubscribe|\n",
    "|set_simple_earn_locked_setAutoSubscribe|设置定期自动申购|/sapi/v1/simple-earn/locked/setAutoSubscribe|\n",
    "|get_simple_earn_flexible_personalLeftQuota|查询活期个人剩余额度|/sapi/v1/simple-earn/flexible/personalLeftQuota|\n",
    "|get_simple_earn_locked_personalLeftQuota|查询定期个人剩余额度|/sapi/v1/simple-earn/locked/personalLeftQuota|\n",
    "|get_simple_earn_flexible_subscriptionPreview|活期申购预览|/sapi/v1/simple-earn/flexible/subscriptionPreview|\n",
    "|get_simple_earn_locked_subscriptionPreview|定期申购预览|/sapi/v1/simple-earn/locked/subscriptionPreview|\n",
    "|get_simple_earn_flexible_history_rateHistory|获取利率历史|/sapi/v1/simple-earn/flexible/history/rateHistory|\n",
    "|get_simple_earn_flexible_history_collateralRecord|获取抵押物记录(USER_DATA)|/sapi/v1/simple-earn/flexible/history/collateralRecord|\n",
    "\n",
    "### 6.16 子母账户接口 SubAccount\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import SubAccount\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|set_sub_account_virtualSubAccount|创建虚拟子账户（适用主账户）|/sapi/v1/sub-account/virtualSubAccount|\n",
    "|get_sub_account_list|查询子账户列表（适用主账户）|/sapi/v1/sub-account/list|\n",
    "|get_sub_account_sub_transfer_history|查询子账户现货资金划转历史 (适用主账户)|/sapi/v1/sub-account/sub/transfer/history|\n",
    "|get_sub_account_futures_internalTransfer|查询子账户合约资金划转历史 (适用主账户)|/sapi/v1/sub-account/futures/internalTransfer|\n",
    "|set_sub_account_futures_internalTransfer|执行子账户合约资金划转 (适用主账户)|/sapi/v1/sub-account/futures/internalTransfer|\n",
    "|get_sub_account_assets_v3|查询子账户资产 (适用主账户)|/sapi/v3/sub-account/assets|\n",
    "|get_sub_account_spotSummary|查询子账户现货资产汇总 (适用主账户)|/sapi/v1/sub-account/spotSummary|\n",
    "|get_capital_deposit_subAddress|获取子账户充值地址 (适用主账户)|/sapi/v1/capital/deposit/subAddress|\n",
    "|get_capital_deposit_subHisrec|获取子账户充值记录 (适用主账户)|/sapi/v1/capital/deposit/subHisrec|\n",
    "|get_sub_account_status|查询子账户Margin/Futures状态 (适用主账户)|/sapi/v1/sub-account/status|\n",
    "|set_sub_account_margin_enable|为子账户开通Margin (适用主账户)|/sapi/v1/sub-account/margin/enable|\n",
    "|get_sub_account_margin_account|查询子账户Margin账户详情 (适用主账户)|/sapi/v1/sub-account/margin/account|\n",
    "|get_sub_account_margin_accountSummary|查询子账户Margin账户汇总 (适用主账户)|/sapi/v1/sub-account/margin/accountSummary|\n",
    "|set_sub_account_futures_enable|为子账户开通Futures (适用主账户)|/sapi/v1/sub-account/futures/enable|\n",
    "|get_sub_account_futures_account_v1|查询子账户Futures账户详情 (适用主账户)|/sapi/v1/sub-account/futures/account|\n",
    "|get_sub_account_futures_accountSummary_v1|查询子账户Futures账户汇总 (适用主账户)|/sapi/v1/sub-account/futures/accountSummary|\n",
    "|get_sub_account_futures_positionRisk_v1|查询子账户合约持仓信息 (仅适用主账户)|/sapi/v1/sub-account/futures/positionRisk|\n",
    "|set_sub_account_futures_transfer|子账户Futures划转 (仅适用主账户)|/sapi/v1/sub-account/futures/transfer|\n",
    "|set_sub_account_margin_transfer|子账户Margin划转 (仅适用主账户)|/sapi/v1/sub-account/margin/transfer|\n",
    "|set_sub_account_transfer_subToSub|向共同主账户下的子账户主动划转 (仅适用子账户)|/sapi/v1/sub-account/transfer/subToSub|\n",
    "|set_sub_account_transfer_subToMaster|向主账户主动划转 (仅适用子账户)|/sapi/v1/sub-account/transfer/subToMaster|\n",
    "|get_sub_account_transfer_subUserHistory|查询子账户划转历史 (仅适用子账户)|/sapi/v1/sub-account/transfer/subUserHistory|\n",
    "|set_sub_account_universalTransfer|子母账户万能划转 (适用主账户)|/sapi/v1/sub-account/universalTransfer|\n",
    "|get_sub_account_universalTransfer|查询子母账户万能划转历史 (适用主账户)|/sapi/v1/sub-account/universalTransfer|\n",
    "|get_sub_account_futures_account|查询子账户Futures账户详情V2 (适用主账户)|/sapi/v2/sub-account/futures/account|\n",
    "|get_sub_account_futures_accountSummary|查询子账户Futures账户汇总V2 (适用主账户)|/sapi/v2/sub-account/futures/accountSummary|\n",
    "|get_sub_account_futures_positionRisk|查询子账户合约持仓信息V2 (仅适用主账户)|/sapi/v2/sub-account/futures/positionRisk|\n",
    "|set_sub_account_blvt_enable|为子账户开通杠杆代币 (适用母账户)|/sapi/v1/sub-account/blvt/enable|\n",
    "|get_sub_account_subAccountApi_ipRestriction|查询子账户API Key IP白名单 (适用母账户)|/sapi/v1/sub-account/subAccountApi/ipRestriction|\n",
    "|cancel_sub_account_subAccountApi_ipRestriction_ipList|删除子账户API Key IP白名单 (适用母账户)|/sapi/v1/sub-account/subAccountApi/ipRestriction/ipList|\n",
    "|set_sub_account_subAccountApi_ipRestriction|为子账户API Key增加IP白名单 (适用母账户)|/sapi/v2/sub-account/subAccountApi/ipRestriction|\n",
    "|set_managed_subaccount_deposit|投资人账户为托管子账户充值资产 (适用投资人母账户)|/sapi/v1/managed-subaccount/deposit|\n",
    "|get_managed_subaccount_asset|投资人账户查询托管子账户资产 (适用投资人母账户)|/sapi/v1/managed-subaccount/asset|\n",
    "|set_managed_subaccount_withdraw|投资人账户为托管子账户提币资产 (适用投资人母账户)|/sapi/v1/managed-subaccount/withdraw|\n",
    "|get_managed_subaccount_accountSnapshot|查询托管子账户资产快照 (适用投资人母账户)|/sapi/v1/managed-subaccount/accountSnapshot|\n",
    "|get_managed_subaccount_queryTransLogForInvestor|查询托管子账户的划转记录(适用投资人母账户)|/sapi/v1/managed-subaccount/queryTransLogForInvestor|\n",
    "|get_managed_subaccount_queryTransLogForTradeParent|查询托管子账户的划转记录(适用交易团队母账户)|/sapi/v1/managed-subaccount/queryTransLogForTradeParent|\n",
    "|get_managed_subaccount_fetch_future_asset|投资人账户查询托管子账户期货资产 (适用投资人母账户)|/sapi/v1/managed-subaccount/fetch-future-asset|\n",
    "|get_managed_subaccount_marginAsset|投资人账户查询托管子账户杠杆资产 (适用投资人母账户)|/sapi/v1/managed-subaccount/marginAsset|\n",
    "|get_sub_account_assets|查询子账户资产(适用主账户)|/sapi/v4/sub-account/assets|\n",
    "|get_managed_subaccount_info|查询托管子账户列表 (适用投资人母账户)|/sapi/v1/managed-subaccount/info|\n",
    "|get_sub_account_transaction_statistics|查询子账户交易量统计列表 (适用母账户)|/sapi/v1/sub-account/transaction-statistics|\n",
    "|get_managed_subaccount_deposit_address|获取托管子账户充值地址 (适用投资人母账户)|/sapi/v1/managed-subaccount/deposit/address|\n",
    "|set_sub_account_eoptions_enable|为子账户开通期权(适用主账户)|/sapi/v1/sub-account/eoptions/enable|\n",
    "|get_managed_subaccount_query_trans_log|查询托管子账户的划转记录(适用交易团队子账户)(USER_DATA)|/sapi/v1/managed-subaccount/query-trans-log|\n",
    "\n",
    "### 6.17 VIP借币接口 VipLoans\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import VipLoans\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_loan_vip_ongoing_orders|查询VIP借币借款中订单|/sapi/v1/loan/vip/ongoing/orders|\n",
    "|set_loan_vip_repay|VIP借币还款|/sapi/v1/loan/vip/repay|\n",
    "|get_loan_vip_repay_history|查询VIP借币还款记录历史|/sapi/v1/loan/vip/repay/history|\n",
    "|set_loan_vip_renew|VIP 借币续期|/sapi/v1/loan/vip/renew|\n",
    "|get_loan_vip_collateral_account|查询VIP子账户冻结抵押物金额|/sapi/v1/loan/vip/collateral/account|\n",
    "|set_loan_vip_borrow|VIP 借币借款|/sapi/v1/loan/vip/borrow|\n",
    "|get_loan_vip_loanable_data|查询VIP借币可借币种数据|/sapi/v1/loan/vip/loanable/data|\n",
    "|get_loan_vip_collateral_data|查询VIP借币抵押币种数据（USER_DATA）|/sapi/v1/loan/vip/collateral/data|\n",
    "|get_loan_vip_request_data|查询申请状态（USER_DATA）|/sapi/v1/loan/vip/request/data|\n",
    "|get_loan_vip_request_interestRate|查询借款利率（USER_DATA）|/sapi/v1/loan/vip/request/interestRate|\n",
    "\n",
    "### 6.18 钱包接口 Wallet\n",
    "\n",
    "```python\n",
    "from binance_interface.api.other import Wallet\n",
    "```\n",
    "\n",
    "|方法|解释|Path|\n",
    "|:---|:---|:---|\n",
    "|get_system_status|系统状态(System)|/sapi/v1/system/status|\n",
    "|get_capital_config_getall|获取所有币信息|/sapi/v1/capital/config/getall|\n",
    "|get_accountSnapshot|查询每日资产快照|/sapi/v1/accountSnapshot|\n",
    "|set_account_disableFastWithdrawSwitch|关闭站内划转|/sapi/v1/account/disableFastWithdrawSwitch|\n",
    "|set_account_enableFastWithdrawSwitch|开启站内划转|/sapi/v1/account/enableFastWithdrawSwitch|\n",
    "|set_capital_withdraw_apply|提币|/sapi/v1/capital/withdraw/apply|\n",
    "|get_capital_deposit_hisrec|获取充值历史(支持多网络)|/sapi/v1/capital/deposit/hisrec|\n",
    "|get_capital_withdraw_history|获取提币历史 (支持多网络)|/sapi/v1/capital/withdraw/history|\n",
    "|get_capital_deposit_address|获取充值地址 (支持多网络)|/sapi/v1/capital/deposit/address|\n",
    "|get_account_status|账户状态|/sapi/v1/account/status|\n",
    "|get_account_apiTradingStatus|账户API交易状态|/sapi/v1/account/apiTradingStatus|\n",
    "|get_asset_dribblet|小额资产转换BNB历史|/sapi/v1/asset/dribblet|\n",
    "|set_asset_dust_btc|获取可以转换成BNB的小额资产|/sapi/v1/asset/dust-btc|\n",
    "|set_asset_dust|小额资产转换|/sapi/v1/asset/dust|\n",
    "|get_asset_assetDividend|资产利息记录|/sapi/v1/asset/assetDividend|\n",
    "|get_asset_assetDetail|上架资产详情|/sapi/v1/asset/assetDetail|\n",
    "|get_asset_tradeFee|交易手续费率查询|/sapi/v1/asset/tradeFee|\n",
    "|set_asset_transfer|用户万向划转|/sapi/v1/asset/transfer|\n",
    "|get_asset_transfer|查询用户万向划转历史|/sapi/v1/asset/transfer|\n",
    "|set_asset_get_funding_asset|资金账户|/sapi/v1/asset/get-funding-asset|\n",
    "|set_asset_getUserAsset|用户持仓|/sapi/v3/asset/getUserAsset|\n",
    "|set_asset_convert_transfer|稳定币自动兑换划转|/sapi/v1/asset/convert-transfer|\n",
    "|get_asset_convert_transfer_queryByPage|稳定币自动兑换划转查询|/sapi/v1/asset/convert-transfer/queryByPage|\n",
    "|get_asset_ledger_transfer_cloud_mining_queryByPage|云算力历史记录分页查询|/sapi/v1/asset/ledger-transfer/cloud-mining/queryByPage|\n",
    "|get_account_apiRestrictions|查询用户API Key权限|/sapi/v1/account/apiRestrictions|\n",
    "|get_capital_contract_convertible_coins|查询用户稳定币与 BUSD 互相转换的设置 (USER_DATA)【TODO 没有找到Table】|/sapi/v1/capital/contract/convertible-coins|\n",
    "|set_capital_contract_convertible_coins|修改哪些稳定币可与 BUSD 互相转换|/sapi/v1/capital/contract/convertible-coins|\n",
    "|set_capital_deposit_credit_apply|一键上账 (充值到过期地址)|/sapi/v1/capital/deposit/credit-apply|\n",
    "|get_capital_deposit_address_list|查询充值地址列表|/sapi/v1/capital/deposit/address/list|\n",
    "|get_asset_wallet_balance|查询用户钱包余额|/sapi/v1/asset/wallet/balance|\n",
    "|get_asset_custody_transfer_history|查询用户委托资金历史(适用主账户)(USER_DATA)|/sapi/v1/asset/custody/transfer-history|"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
